initialise object fields with the right values