changed declerations to initialisations