refactored: input-error