working solution for version read