model genaration method changed. removed backref