fix constraints
make model prototype public