attempted fix for deadline calculations