fixed warning, remove un-used var