removing pattern in pages