helper func first draft

please review it --- jackie