removed few line.

remove the return statement in for-in loop, as we dont need.