added a close method, got push back correct