update valid/unvalid features