implementation for more then two multiplications in a term