Cleanup erb method