move walk into separate file