filter invalid details