added findDeadSpace