fix typo and set appropriate type for flicker() method