separated action break 3 and 4 in walk function