added explicit return instead of erroneous Unit return