code snippet from my homepage