code from review session