rewrite reverse int