removed refunded in if statement