prior to q for loop rip out