put functions in order of execution