cleaning up
move pattern initialization to data storage