add some protection