input scripts in appendixd,e,f