Changing variable name previous for current, more understanding