added solution for die