added hack to onoffdiagram