tried to make classifier faster. not very successful