script is working ok