cosmits + factorize checking