change sig to work with factors