loops fixing