minor pattern stuff