removed old pause code