update element-wise multiplication with comments