began modify logic