Change L-Matrix emlimentation