initialising variables to be returned in some function