part i optimization of code 1 463343