new version with HR computation implemented