remove return from loop