a few updates to fix edge calculations