change queue pop to assigning empty list