updated package and reverted err check on membership check