adding merchant function