added some testing code, but it's commented out.