reformat & add isInitializing method