delete unused code
add get/setAttributes