made some optimizations/clarity to Objective function