added error message for unsuported types