logic script is done