fixed to_sym method