fixed the learning thing a bit