remove unnecessary shifting in filter
Fancy F
dry out main script