reduce codes for sensor accessor