refactor Check nearest observation method
fix name CheckState