implemented guard to make things more fun