convert type
update leaves
add views