manual frontface check, correct line indices