enabled more code in main