put duplicate code to processResponse