simplified the exercise