Remove redudant code
add in calculation of symbol