added puts to def move