don't reallocate cs
use np.all instead of python's all