added letterfunction