remove old measure code