inital organization of variables and methods