added jasmine guard