doing dom gives chance for a frame