top down rendering with a logic error