implemented some edge stuff