adding list creation with rest-fn