updated Main Block