PRE logic edit