matrix module for cl