removed reverse function