don't need to detect functions anymore