added letter frequency analysis