subcall cost calculation fix