fixed unused variables