fix unused variables warnings