doesnt calculate decimals, i wanted to use this function to add an opti