should be `$data` not `$dataToSave`