tweaked target amount function