added two optimization techniques.