mesh for detector revised