implemented letter position masking