deleted free_symbols property so as to work for factor function