screen boundary overflow check