user history routine added.