adding more functions.  Needs simple test case