final working script