move edge detection out of scene