why would we duplicate all that code?