call function rather than faking event