move variable initialisation to constructor