script working