making sure code is safe