fixed '<<loop>>' error and some typos