added back padding to index and index partial