transform/variance

Added variance checking.
:+1: