Fix some warnings

is there a reason for using enumerate here when the index isnt used at all?