HORRIBLE code to do select contact