try to format response dynamically