BASE CODE