loops are working now