adding guard