add guard
Merge pull request #70 from larsonkonr/guard

add guard