recursive ylm

attempt at a functional ylm. doesn’t work though