only increment the id if there is no id