changed gross margin function and utility function