removing invalidities