get previous data