updating export functionality