started prediction code