configured guard to work