changed return values for classify