=='active' changed to !='deleted' (due to 'inactive' also needing to be reported)