changed models to generate uid