tried to make example code clearer