fixed bugs. added some utility for exp 3