üpdated ver. after closing final app