cleand op some shadeng code, added h vector