modified annotion id compare method to work backward compatible