comment on constructor code