fixed previous broken commit...proper reverse function