added to test.cpp