added select statement if gettrees be used by providing uid