adjust edges