simulation slightly changed (not finished yet)