stat function to show status of defers