implement next function
implement list