added pause and frame order