added check concavity to updateG