fixed orf detection logic