fixed a stupid mistake with omitting a constant in the sq_ratio check