handle auto increment field