fixed example reverse function