inline setDefaults added