functions now below main, added other tests using both successor functions