tweaked script