adding guard to the build