fixed bug in refactoring and refactored telldusOFF