[IMP]sale :improved code