tiny refactor of compose response