Firm behavior and production costs