added inline detector