remove unused variables causing warning