fix warning reg. unused variable