test frame
main process with function declaration