add square following edge