added a little protection