return the pet id instead of petdetail id