added separate counters for resizing and GR