worked on script window