it won't improve the performance and also will move the n variable to the scope where it's not needed, so I'm not going to follow this one