Change order of operators for better performance