rewrote loop to much better :)