added frame rate counter