[code] finish the application