added allowedWith method