added removing loop