optized code...