eliminated warnings (void == and unused t)