adds use of guard to application