next fully implemented

need to work on prev