optimizing bsp