working on edges, instable for now