fixed object create for units to use the second parameter for properties