modified to suit comments mult function