add module of matrix handling