throw error if size isn't 1