moved the position where update_drop_height is called