precision fix for cost