getting and setting values of attributes