move_block function works