added sense to code