adjusted code (site changed)