Edit bates in different file formats