added parameters to hap