re-fixed snapshot bug, changed type of structured_predict to remove copying