handle return arguments of type list