remove unnecessary local var