makes sure row is empty before moving it