determine previous version