moving the renderStrategy to component