preliminary code for vector hash