moved initialisation code to constructor