initial code checking