pattern for races