refactoring in to_lilypond