new function to initialize