file saving works better