endgray used to