modify main and sub, but commit in main