made file saving better hopefully