handling response better