compile main success