changing i indexing to 0 in render members