fixed die constructor and added