updating Warning message to reflect the correct object type