formatting decode