small inlining to clean up