added q to memorystore