fixing pattern inconsistancies