adds override to write template