added a guard