doomsday algorithm added