basic work on hwp matching