translate initial program to a module