reformatting inline ctor/dtor code for better maintainability