fixed a few errors with the model, more appeared will continue to fix