removed first loop