added next ID function
test