fixed bugs in removal methods and changed loop counting method