reorders functions