add interception funtion.