call fun in main