method for removing elements from model