only need to discard the output once instead of doing it every time.