remove useless main code