reduce loops use
fix missing colon
fix typo