fix to new incident function