using select to get resp