added semi-colon and fixed cleanLoop func name