forgot a toDouble => float con version
removed prints and correct a api call
restered use of original indexes