adwanced the script