moved initialization to the page where it is used