updated learn & testing