some unnecessary lines are removed and filename is changed (actually cut in right place).