optimization of branch prediction