refactor:extract getInfoFromAllItem function