added new function for setup process