moved initialize to constructor