shoes are selected according to the present function