added letter change algo