added if statements for symbols