work version for tests