fix hip code