reorganize and now render is working.