make the setTimeout inline