changed getter. Now getter throws exception if instance is modified