basic function available for all window.