make landing page code more efficient