comminged out loop code for now