part ii optimization of code 3 1130932