add method of script