small performance improvement and better code readability