Update die.h

better api