forgot to specify the 'w' flag in the save method. fixed