instatiating fields at construction time