adding rock or no rock detection