edited select_buil