fixing tbe script