checking for conflicts