position is updated; code clean-up