adding letter producing logic