added console. log and ternary for payoff of appliance