add part to file