added partial code