adding guard clause