update logic for responses