moving, sorting, and thinking