added invalid entries functionality