modified learner so it uses a weight now