removed empty loop