occurrence status processing

occurrence status processing
code cleanup

code cleanup