explained the if (start == end)