fixed the bugs in decorators

- minor modification to arduino code
- should be working correctly
- tested with arduino
- failed test for retrieving data as expected