changed K to have 3decimal places