- improve on analyse script