change return value to list