dumb version of recursive