Better naming for functions and variables of optimizer