modify to check matched form is symbol in pattern matcher