making auto incrementing work