added formatting so that dragmath works