made get last as a transaction