Almost £400,000 was paid out to former Members of the Senedd who failed to be re-elected in May's election.
Serving politicians who seek re-election but are not re-elected are given payments called resettlement grants.
The figures, obtained through a Freedom of Information request, show £397,230.21 was paid to 13 Members of the Senedd who unsuccessfully attempted to be re-elected.
You can see here how much all of Wales' 60MSs spent in expenses in the previous Senedd term.
There were 13 MSs who received payouts after the election. Those who chose not to stand again do not receive the payment.
The amounts are determined by the independent Remuneration Board.
Gareth Bennett

Elected as a regional UKIP Senedd member in 2016, Mr Bennett stood for re-election as an independent in Cynon Valley. He came last with 278 votes. The winning candidate, Labour's Vikki Howells, got 11,427.
He received £28,187.09 as a base resettlement grant and an additional £4,555.54 as an office holder resettlement grant.
Michelle Brown

Another regional UKIP representative, Ms Brown was not re-elected in 2016 after standing as an independent candidate for the north Wales region. She secured 382 votes.
She received £28,187.09 as a base resettlement grant
Neil Hamilton

The former Conservative MP turned UKIP MS was also elected via the regional list in 2016. He sought re-election in 2021 in Islwyn and was also a regional candidate for South Wales East.
He got 621 votes in the constituency and Ukip got 4,101 votes on the regional list.
In total, he received £33,187.08 made up of the base resettlement grant and an extra £5,000 for being an office holder.
Caroline Jones

Elected as a regional Ukip AM in 2016, Ms Jones stood for re-election as an independent candidate in Bridgend, a seat which has only ever returned a Labour representative.
She got 1,064 votes coming in fifth place. The winning candidate, Sarah Murphy, got 12,388 votes.
She received the £28,187.08 base rate and £4,598.95 additional sum totalling £32,786.03.
Mandy Jones

A regional Ukip AM when elected in 2016, she took on former cabinet minster Ken Skates in the 2021 election.
Ms Jones, who stood for Reform UK, got 277 votes.
Her payment was £16,912.25 as she had not served a full term, replacing Nathan Gill when he left the Assembly.
Mark Reckless

Another former MP who joined the Assembly in 2016, Mark Reckless stood in 2021 for the Abolish the Welsh Assembly Party in Monmouth. After leaving Ukip, he then joined the Conservative group, became an independent, then the Brexit Party and finally Abolish in his five year term.
It was comfortably held by Conservative Peter Fox who got 15,332 votes. Mr Reckless got 1,174 votes.
Mr Reckless received the base rate of £28,187.08 and £4,492.25.
David Rowlands

Elected for Ukip in 2016, Mr Rowlands stood for Reform UK in the 2021 election in the Newport East constituency where he got 328 votes.
Mr Rowlands received the base rate of £28,187.08 and £3,435.25 additional funds.
Helen Mary Jones

The Plaid Cymru politician returned to the Senedd after party colleague Simon Thomas quit in 2018 after being convicted of making indecent images.
In 2021, she hoped to be re-elected as MS for Llanelli, but Labour's Lee Waters had a comfortable victory in what has historically been a close seat.
Ms Jones received £11,274.83 base payment and £3,435.25 as an office holder.
Neil McEvoy

The former Plaid Cymru MS stood for his own party, Propel, in 2021. He stood in Cardiff West, a seat comfortably won by First Minister Mark Drakeford. Mr Drakeford got 17,664 votes and Mr McEvoy got 3,473.
Mr McEvoy, who remains a Cardiff councillor, received £28,187.08.
Dai Lloyd

A former South Wales West regional MS, Dr Lloyd stood in Swansea West against cabinet member Julie James. Mr Lloyd got 3,910 votes compared to Ms James' 11,126.
Dr Lloyd received £28,187.08 base payment and £3,435.26 totalling £31,622.33.
When Dr Lloyd was defeated in 2011, he received a resettlement grant of £41,815.44.
Leanne Wood

Her loss of Rhondda was one of the shocks of election night.
Leanne Wood was first elected in 2003 to represent South Wales Central and become Rhondda AM in 2016.
A former Plaid Cymru leader she received a £33,824.50 base payment and £6,250 extra, totalling £40,074.50.
Nick Ramsay

Mr Ramsay fell out with his local party in Monmouth, which he has represented at the Senedd since 2007, which led to him standing as an independent candidate in the 2021 Senedd election.
Members of Monmouth Conservative Association voted to deselect him and chose Monmouthshire County Council leader Peter Fox to replace him as their candidate. Mr Fox was successfully elected with 15,332 votes. Mr Ramsay got 1,293 votes.
He received £33,824.50 base payment and £3,435.25, totalling £37,259.75.
Suzy Davies
The former Conservative had sought to be on the regional list for South Wales West, but failed to be selected at the top of the list, instead she was fifth on the Conservative list for South Wales West when only four people can be elected from any region.
The top two Conservative candidates were elected to the Senedd from that regional list.
She received £33,824.50 base payment and £3,435.25, totalling £37,259.75.