error: i is empty