rename functions directory to definitions