added conditional for .learn text