corrected model which was being called before it was being defined(i simply moved the declaration since python is so stupid to reread the code and see it in there, but i forgive python :] )

]
'