currently has a closure issue with displaying initial pattern