simplified increment of id