updated customer to avoid using array