changed autounique to integer