added nodes by labels method