front-end of aspect detector