add set clear
Merge pull request #277 from kostya/set_clear

add set clear