change code for readability without any performance improvement
slightly improve the performance