code refine for supplierId