should be ``write``, not ``wrote``