add this to get/set attribute function