made walk function