added a case for the gauss filter which means it runs quicker