working on 5 group pattern completion