correct write return