another mofification to prepare script