get public properties of object