working on edge filtering methods