replace boilerplate