introduced static variable "isLoaded"