added loop extension