some safety checks added to differential partialDefinition creation