added doc in code for check_consistent_size