initializing guard