first run on all functions