add gray, reverse function