remove the self main func