little change to constructor