fix features and candidate generation