wrapped two functions in initialise function