added tuned code