new version with non-flickering edge