space indentation
move script to main()