splitting pricetable to a directive