moved die method to utilities