added remove_back functionality