made a mistakes, corrected it, see code for more info, just a minor
error