fixed >> operator and more files for input