added another rule for final e