check for main