adding rudimentary safety check