made loop better, an error i was trying to fix ended up not being my fault...