exporting two more functions.
design by types.
refactoring.