added highest level, microoptimizations for rendering