it helps to describe what this code does and why

therefore it goes into a function for now.