changed return type of selectProcess