removed boxMain and codes