add cosole to print the message and the area of the window