minor simplification in hamlc_helpers