improved implementation of exercise.