added select all function