now works with decimals