removed the "discarded non-Unit value" warning