added local variables initialization.