fixed unused variables warning