improve exec time by removing pointer dereferencings