run time optimization added

run time optimization added