new Utils functions for matrices
Shadow management - not working yet