get lasted codes