code for seller and partial code for deals