adding a function to check recording status