change specified type from interface to class to ensure inlining