collecting and checking data