added in a way to save queries