the first learning procedure