removed useless loop from main