add main-function