correct printDisplay output, throw away unused variables