making the model work. tested, works