simple next implementation