optimisation of upsampling filter