(interFunctions) invert if conditions and for loops for better perfs