update main for look up repeat