add a parameter for consistency check
add a consistency check