reordering functions in setup