minor refactorings (extracted core_render from render method)