changed identifier l to loop