added hf_gaussian with small changes