fixing data script