a method for initializing