more checks for undef arrs. possible fix isplaying