adds some horrible pattern stuff