correct processing of illegal situations