excel export correct and functions modification