moved initialization to constructor