add basic attribute operations

add basic attribute operations