stop people from genearting the wrong code