remove duplicated multiplication