adding in partial code