more functions to simplify testing