change magic number in saved file to appropriate string