adding function for letter manipulation