fix a bug; inserting new lines here and there