cleaned up example script