working on issue 366 (problem in test 5)