hemized function

add hemmed function