check q2 numbers to prevent nan