move all 9s to end