fixes in convex production function