just some additional staging
unstage
Small review of averageFilter() and a little cleanup