updated code for amended website