nevermind; combining the functions messes up base case capture