removed xsaveSynchronously function