making script work