Updates in math matrix