further optimization do spice