removing loop