simple first pass at turning a list into a functionc all