before testing frames and sprites