added remove elephant functionality