got the two loops working now!