use Object.defineProperty to define interval