checking if consistent environments