add function: delete all
revise drawing part