dropped letters arrary
refactored to remove nested if statements