added case for checking single element