improved set of setters/getters in public objects