Solution for notreverse