added triangle area ratio check