have updated the file fixing the -1 error