remove length from loop