fix directions for fast functions