to test within GUI