insert 'optimization'

it just drops the data if someone attempts to give a 0 as input because
for loop starts before that