partial code for review