rearranging code.
getting madlib port.