inital procedure function setup