removed unwanted patterns