tweaked the assert function; much closer to working