adding full matrix