using vector for renderObjects