Use __setarrt__ to refactor codes.