changes to onoffdiagram