initial patterns and rules