*8877* logic