fixes tax determination