fixed coding style (no spaces after for and if)