don't need separate function for tests