comment out patch-averaging code for now