take fee into account