ne pop all method and small bug fix