additional method for removeloop()