refactoring autoinc
go fmt
better comments with debug