added patterns for d, and mapped d to e and dd to v