add restrictions to collections

Signed-off-by: Hake Huang <hakehuang@gmail.com>