finished h-l method