preventing duplicate access of fields or properties