adding guard for testing