edit some error
selectAll function