added check for edges