excluding private properties in a better way