pass order to each function