fix bug
Implement diagno

close #3