fine tuned classification algorithm (not working)

written, contains errors