converting categories to dummies etc