add conditions static class to clean up syntax a bit