added associatedCosts variable to console output