breaking down long funcs for testing, a little