make h a vector