type should be required