added guard to the project