ensure all previous attributes are cleared
add switchAttribute to readme