readded types to error messages; will be testing soon