getnext basic functionality