added loop, deleted commented