cleaning up and formalities