det condition breaking...need to reevaluate