cleanup and added creditSale