return value is handled here instead for both these cases.