I finally understand how this works