factor given statement into hash