moved var.contrast back into namespace. this should fix problem found by travis