the new way of flickering, corrected some typos