added code in customer.js, but it still has a bug!