fully functional, matches all expected results