save id with every measurement