concluding function