minor fixes in edge effects