remove pin part in the file