added functions for tests