menthod for successful initialization