deleted code
rewrote code up to the walk function