used for tests