edit style and date function temp fix