fixed bugs. add rend-func move. merge rend-func content and text