statistics added, fixed classification problem