bugfix
working!
best model is found now
fully working code