added less error-prone way of checking start contents