calculates edge
can remove spirit records from view