refactors, so that it's easy to specify if either sprint or rest should go first