new code logic about registered labs