added guard for testing