cashing of attribute reference and setting