add support to calculate product rules