avoid division by zero
minors