finally fixed status_change script