changes - linear matrix instead of vector for blocks