adding basic functions for poping and removing elements from the collection