(*)finished check input