classifier implemented but it seems too slow.