update mp for canvas