set proper main