added check to for center point