clean stupid codes
finish file input; clean unused code