modified an interceptor from function to array