adds difference function for one letter