added implementation for interceptor