modified as per script