changed some code for lessons