update matrix layout