added invert functionamlity
Merge branch 'tmp_branch'
addd invert feature