added inputError macro