let R do the dummy coding automatically in new regression function