added filter to speed up ai