added hr-function