removes unnecessary "j" var from for loop