add identity when pop code