rename i, styling, remove debug prints