update main definition