implemented filesize check on the save file function