transform/variance

Added variance checking.