standardize response generation